package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Acceptance;
import cn.wolfcode.crm.query.RequireQueryObject;

import java.util.List;

public interface AcceptanceMapper {

    void deleteByPrimaryKey(Long id);

    void insert(Acceptance record);

    Acceptance selectByPrimaryKey(Long id);

    List<Acceptance> selectAll();

    void updateByPrimaryKey(Acceptance record);

    /**
     * 查询总条数
     * @param qo
     * @return
     */
    int queryForCount(RequireQueryObject qo);

    /**
     * 分页查询
     * @param qo
     * @return
     */
    List<Acceptance> queryForList(RequireQueryObject qo);
}